home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / DO1002.ARJ / HALT.SCR < prev    next >
Text File  |  1991-12-13  |  842b  |  22 lines

  1. .pg wi full clr cy
  2.     COMMAND NAME»gray«: »%t« HaltScript »ye«
  3.  
  4.     /HALT [{ReturnCode}]
  5. /cw
  6.     Stops all script processing and returns »cy«{ReturnCode}»#« to the
  7.     operating system.  If »cy«{ReturnCode}»#« is not entered, »%t«/HALT»#« will
  8.     return the code set by the last »%t«/RETURNCODE»#« command.  If no
  9.     code is set, the default is »ye«ZERO»#«.
  10.  
  11.     This code can be interrogated by the DOS »gr«ERRORLEVEL»#« "if"
  12.     parameter.  See the »%t«ReturnCode»#« (»%t«/RETURNCODE»#«) command for
  13.     an example.
  14.  
  15.     Because »%t«HaltScript»#« would terminate this tutorial, it is not
  16.     included as a demonstration. However, »ye«HALTTEST.SCR»#« and
  17.     »ye«HALT.BAT»#« are provided if you wish to try this command.
  18.     Execute »ye«HALT.BAT»#« from the DOS command prompt to see the
  19.     result.
  20.  
  21. /ENDEXEC CLEAR
  22.